package com.zwb.demo.strategy;

import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Component;

/**
 * @author 2825075112@qq.com
 */
@Component
public class IntArraysCellParser implements ICellParser {
    @Override
    public String name() {
        return "int[][]";
    }

    @Override
    public Object defaultValue() {
        return new int[0][];
    }

    @Override
    public Object parseStringCellValue(String stringCellValue) {
        return JSON.parseObject(stringCellValue, int[][].class);
    }

    @Override
    public String javaClass() {
        return "int[][]";
    }

    @Override
    public String goClass() {
        return "[][]int32";
    }
}
